home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16012 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: in1.uu.net!tandem!usenet
  2. From: Anatoli Mandelchtam <tolik@tarley_pc.loc201.tandem.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What are the differences between structures and classes in C++ ?
  5. Date: Mon, 08 Apr 1996 22:21:57 -0700
  6. Organization: Tandem Computers Inc., Cupertino, CA
  7. Message-ID: <3169F3F5.4D@tarley_pc.loc201.tandem.com>
  8. References: <4k5m65$av@hpscit.sc.hp.com> <DpG53J.Hsz@presby.edu> <4k83j3$a56@hpscit.sc.hp.com> <marnoldDpHvED.E0t@netcom.com> <31696B8E.6461@datalytics.com>
  9. NNTP-Posting-Host: miket_home1.fnord.tandem.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (Win95; I)
  14.  
  15. Rob Stewart wrote:
  16. > Actually, classes *are* structs, since struct came first.  Early
  17. > debuggers would also reveal this (at least dbx on the UNIX side
  18. > did).  What you declared a class the debugger revealed as a
  19. > struct.
  20.  
  21. Nope. Structs *are* classes since classes include all features of
  22. structs _and_ additional functionality. And the fact that early
  23. debuggers carry some rudimentary naming conventions only points
  24. out that they were created in a hurry or by people who were too
  25. lazy to do appropriate changes.
  26.  
  27. Regards,
  28.  
  29. Anatoli.
  30.